import { UITransform,Node, Layers } from "cc";

export const createUINode = ()=>{
    const node = new Node();
    const transfrom = node.addComponent(UITransform);
    transfrom.setContentSize(0,1);
    node.layer = 1 << Layers.nameToLayer('UI_2D');
    return node;
}

export const  randomByRange = (start:number,end:number)=>  Math.floor(start+(end-start)*Math.random())

